﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using C1.Win.C1FlexGrid;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;

namespace HeThongDoDien.Helper
{
    public class DataHelper
    {
        //Phuong thuc lay du lieu tu Datatable
        public static void LoadDataTableToC1Grid(C1FlexGrid ip_c1Grid, DataTable ip_table)
        {
            Debug.Assert(ip_c1Grid != null, "Chưa khởi tạo C1 grid control: Null");
            Debug.Assert(ip_table != null, "Bảng không chứa dữ liệu: Null");
            ip_c1Grid.DataSource = ip_table;
            for ( int i=0; i<ip_table.Columns.Count;i++)
            {
               // Viet Sau,chua hieu?

            }
        }
       
        
    } 
}
